// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import '@/lib/mui/css/mui.css'
import '@/lib/mui/css/icons-extra.css'
// import mui from '@/lib/mui/js/mui.js'
import axios from 'axios'
// 日期格式化插件
import moment from 'moment'
// 图片缩略图插件
import VuePreview from 'vue-preview'
// import Vuex from 'vuex'
import store from './store'

Vue.config.productionTip = false
Vue.use(Mint)
Vue.use(VuePreview)
Vue.prototype.axios = axios
// Vue.prototype.mui = mui
Vue.filter('dateFormat', function (dateStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
  return moment(dateStr).format(pattern)
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
